//
//  YYEnterTextCell.m
//  Xanthium
//
//  Created by yangyongMac on 2018/7/6.
//  Copyright © 2018年 GuanQinghao. All rights reserved.
//

#import "YYEnterTextCell.h"
#import "GQHBaseModel.h"

@implementation YYEnterTextCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setIsEnter:(BOOL)isEnter
{
    _isEnter = isEnter;
    
    self.showValueLabel.hidden = isEnter;
    self.enterText.hidden = !isEnter;
}

- (void)setShowTitleText:(NSString *)showTitleText
{
    _showTitleText = showTitleText;
    
    CGSize textSize = [GQHBaseModel sizeWithString:showTitleText font:[UIFont systemFontOfSize:17] maxSize:CGSizeMake(MAXFLOAT, 50)];
    self.titleLabel_width.constant = textSize.width + 10;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}



@end
